<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Freetype OpenGL: vertex_attribute_t Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="content"><!-- do not remove this div! -->

<div id="top"><!-- do not remove this div! -->

  
  <div id="titlearea">
    
    <div id="projectname">Freetype OpenGL</div>
    
    
    <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
    
  </div>
  

<!--

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Freetype OpenGL
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
  </td>
  
  
  
   
  
 </tr>
 </tbody>
</table>
</div>
-->


<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">vertex_attribute_t Struct Reference<div class="ingroups"><a class="el" href="group__vertex-attribut.html">Vertex attribute</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Generic vertex attribute. </p>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a318b0b4aee0ca6cb71ad93c23c91a9db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a318b0b4aee0ca6cb71ad93c23c91a9db"></a>
GLenum&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a318b0b4aee0ca6cb71ad93c23c91a9db">target</a></td></tr>
<tr class="memdesc:a318b0b4aee0ca6cb71ad93c23c91a9db"><td class="mdescLeft">&#160;</td><td class="mdescRight">a client-side capability. <br/></td></tr>
<tr class="memitem:a30176916b1c285c10e4b2abe7c14bd9c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30176916b1c285c10e4b2abe7c14bd9c"></a>
GLchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a30176916b1c285c10e4b2abe7c14bd9c">ctarget</a></td></tr>
<tr class="memdesc:a30176916b1c285c10e4b2abe7c14bd9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">a translated client-side capability. <br/></td></tr>
<tr class="memitem:a2e80d9208b165369bee84d5f6362a4d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e80d9208b165369bee84d5f6362a4d7"></a>
GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a2e80d9208b165369bee84d5f6362a4d7">index</a></td></tr>
<tr class="memdesc:a2e80d9208b165369bee84d5f6362a4d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">index of the generic vertex attribute to be modified. <br/></td></tr>
<tr class="memitem:a03531e6f74bbc2cada71f18e8690aba6"><td class="memItemLeft" align="right" valign="top">GLint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a03531e6f74bbc2cada71f18e8690aba6">size</a></td></tr>
<tr class="memdesc:a03531e6f74bbc2cada71f18e8690aba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of components per generic vertex attribute.  <a href="#a03531e6f74bbc2cada71f18e8690aba6"></a><br/></td></tr>
<tr class="memitem:a12aeee805954642397c2370111a097b1"><td class="memItemLeft" align="right" valign="top">GLenum&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a12aeee805954642397c2370111a097b1">type</a></td></tr>
<tr class="memdesc:a12aeee805954642397c2370111a097b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">data type of each component in the array.  <a href="#a12aeee805954642397c2370111a097b1"></a><br/></td></tr>
<tr class="memitem:a96f720d68a7dd2e3e9565854417f815f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96f720d68a7dd2e3e9565854417f815f"></a>
GLboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a96f720d68a7dd2e3e9565854417f815f">normalized</a></td></tr>
<tr class="memdesc:a96f720d68a7dd2e3e9565854417f815f"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. <br/></td></tr>
<tr class="memitem:ae42c5150a9ad1601d9d5638e39dfd9ac"><td class="memItemLeft" align="right" valign="top">GLsizei&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#ae42c5150a9ad1601d9d5638e39dfd9ac">stride</a></td></tr>
<tr class="memdesc:ae42c5150a9ad1601d9d5638e39dfd9ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">byte offset between consecutive generic vertex attributes.  <a href="#ae42c5150a9ad1601d9d5638e39dfd9ac"></a><br/></td></tr>
<tr class="memitem:a825e3b23307c1f2761fd480a8dd36e5e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a825e3b23307c1f2761fd480a8dd36e5e"></a>
GLvoid *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#a825e3b23307c1f2761fd480a8dd36e5e">pointer</a></td></tr>
<tr class="memdesc:a825e3b23307c1f2761fd480a8dd36e5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to the first component of the first attribute element in the array. <br/></td></tr>
<tr class="memitem:ad14e3ea6e5949c4c631001b152fa039c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad14e3ea6e5949c4c631001b152fa039c"></a>
void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__attribute__t.html#ad14e3ea6e5949c4c631001b152fa039c">enable</a> )(void *)</td></tr>
<tr class="memdesc:ad14e3ea6e5949c4c631001b152fa039c"><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to the function that enable this attribute. <br/></td></tr>
</table>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="a03531e6f74bbc2cada71f18e8690aba6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLint <a class="el" href="structvertex__attribute__t.html#a03531e6f74bbc2cada71f18e8690aba6">vertex_attribute_t::size</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Number of components per generic vertex attribute. </p>
<p>Must be 1, 2, 3, or 4. The initial value is 4. </p>

</div>
</div>
<a class="anchor" id="ae42c5150a9ad1601d9d5638e39dfd9ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLsizei <a class="el" href="structvertex__attribute__t.html#ae42c5150a9ad1601d9d5638e39dfd9ac">vertex_attribute_t::stride</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>byte offset between consecutive generic vertex attributes. </p>
<p>If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. </p>

</div>
</div>
<a class="anchor" id="a12aeee805954642397c2370111a097b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLenum <a class="el" href="structvertex__attribute__t.html#a12aeee805954642397c2370111a097b1">vertex_attribute_t::type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>data type of each component in the array. </p>
<p>Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. </p>

</div>
</div>
</div><!-- contents -->
</div>
</body>
</html>
